﻿using System.Windows.Forms;

namespace WindowsFormsApplication1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, System.EventArgs e)
        {
            var serviceClient = new ServiceReference1.Service1Client();
            
            if (serviceClient.ClientCredentials == null) return;

            serviceClient.ClientCredentials.UserName.UserName = "duc";
            serviceClient.ClientCredentials.UserName.Password = "ducadmin";
            
            Text = serviceClient.GetData(999);
        }
    }
}
